﻿<UserControl x:Class="SmartCardClient.Views.Features.RawApduView"
			 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
			 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
			 xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
			 xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
			 mc:Ignorable="d" 
			 d:DesignHeight="157" d:DesignWidth="306">

	<Grid>
		<Grid.RowDefinitions>
			<RowDefinition Height="20"/>
			<RowDefinition Height="20"/>
			<RowDefinition Height="20"/>
			<RowDefinition Height="20"/>
			<RowDefinition Height="20"/>
			<RowDefinition Height="20"/>
			<RowDefinition Height="*" />
		</Grid.RowDefinitions>
		
		<Grid.ColumnDefinitions>
			<ColumnDefinition Width="125"/>
			<ColumnDefinition Width="*"/>
		</Grid.ColumnDefinitions>

		<TextBlock Text="Class" Grid.Row="0" Grid.Column="0"/>
		<TextBox Text="{Binding Path=InstructionClass, Mode=TwoWay}" Grid.Row="0" Grid.Column="1"/>

		<TextBlock Text="Instruction" Grid.Row="1" Grid.Column="0"/>
		<TextBox Text="{Binding Path=InstructionCode, Mode=TwoWay}" Grid.Row="1" Grid.Column="1"/>

		<TextBlock Text="Param 1:" Grid.Row="2" Grid.Column="0"/>
		<TextBox Text="{Binding Path=Param1, Mode=TwoWay}" Grid.Row="2" Grid.Column="1"/>

		<TextBlock Text="Param 2:" Grid.Row="3" Grid.Column="0"/>
		<TextBox Text="{Binding Path=Param2, Mode=TwoWay}" Grid.Row="3" Grid.Column="1"/>

		<TextBlock Text="Command Data:" Grid.Row="4" Grid.Column="0"/>
		<TextBox Text="{Binding Path=CommandData, Mode=TwoWay}" Grid.Row="4" Grid.Column="1"/>

		<TextBlock Text="Max Response Length:" Grid.Row="5" Grid.Column="0"/>
		<TextBox Text="{Binding Path=MaxResponseLength, Mode=TwoWay}" Grid.Row="5" Grid.Column="1"/>

		<Button HorizontalAlignment="Right" VerticalAlignment="Bottom" Margin="2" Width="50" Height="20" Content="Send"
				Command="{Binding Path=SendCommand}" Grid.Row="7" Grid.Column="1"/>
	</Grid>
</UserControl>
